
# 变更模板
ALTERATION_MODULES = u'''
一、变更步骤
//已包含变更前检查及变更步骤 
//如果网管自动执行失败，则改为手动执行
ssh {ip}
//{switch_name}//
sh zone pending-diff
////zone name
{zone_infos}
conf t
{zone_config}
zoneset name {fabric} vsan {vsan:d}
{members}
zoneset activate name {fabric} vsan {vsan:d}
zone commit vsan {vsan:d}
end
copy run start
exit
'''

# 回退模板
ROLLBACK_MODULES = u'''
二、回退步骤
//如网管监控发现相应链路异常翻转,则应急关闭端口.
ssh {ip}
//{switch_name}//
conf t
zoneset name {fabric} vsan {vsan:d}
{members}
zoneset activate name {fabric} vsan {vsan:d}
{no_zone_infos}
zone commit vsan {vsan:d}
end
copy run start
exit
'''

# 验证步骤模板
CHECKING_MODULES = u'''
三、验证步骤
//验证确认链路状态,如正常则完成搭建,如异常则后续排查.
ssh {ip}
//{switch_name}//
sh zone pending-diff
////zone name
{check_zone_infos}
exit
'''
